import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import '@/icons' // svg-icon
import Pagination from '@/components/Pagination'
import hljs from 'highlight.js'
// //日期工具
import DateUtil from "./utils/DateUtil.js";


Vue.prototype.DateUtil = DateUtil;
Vue.component('Pagination', Pagination)
Vue.directive('highlight', function (el) {
  let blocks = el.querySelectorAll('pre');
  blocks.forEach((block) => {
    hljs.highlightElement(block)
  })
})
Vue.use(ElementUI);
Vue.config.productionTip = false

import VueWechatTitle from 'vue-wechat-title'
Vue.use(VueWechatTitle)

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
